"use strict";
Ajax('/api/list', (data) => {
    return renderList(data.data);
});
function renderList(data) {
    const box = document.querySelector('.box');
    box.innerHTML = data.map(item => {
        return `
        <div>
            <h3>${item.title}</h3>
            <img src='${item.img}' alt />
            <p>${item.desc}</p>
        </div>
        `;
    }).join('');
}
